import http from "@/api/axios";
import { BusinessType } from "@/api/moduleConfig";
export const getListApi = (data: AgencyBalance.SearchForm) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePayableStatement/listAgentAmount`,
    data
  });
};
// 代理商余额
export const getAgencyBalanceInfoApi = (agentId: string) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePayableStatement/getStatementListByAgentId/${agentId}`
  });
};

// 应付对账单 - 运单 - 成本调整
export const setAdjustCostApi = (data: { id: string; adjustCost: number }) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePayableStatementShipment/setAdjustCost`,
    data
  });
};

//应付对账单 - 运单 - 导入成本调整
export const importAdjustCostApi = (data: FormData, id: string) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePayableStatementShipment/importAdjustCost/${id}`,
    data,
    headers: {
      "Content-type": "multipart/form-data"
    }
  });
};
